#ifndef TEXT_EDIT_H
#define TEXT_EDIT_H

#include <QtGui/QDialog>
#include <QTableWidgetItem>

namespace Ui
{
    class text_edit;
}

class text_edit : public QDialog
{
    Q_OBJECT

public:
    text_edit(QWidget *parent);
    ~text_edit();
    //present current state about which button is clicked
    //0 = close, 1 = save, 2 = edit
    int check;
    int image_signal;

public slots:
    void text_view(QList<QTableWidgetItem*> item);
    void containing_image_view(QList<QTableWidgetItem*> image_list);
    void containing_image_set(QString choosen_image);
    void text_save();
    void text_close();
    void text_edit_button();
    void text_image_view();
    QStringList text_return();
    QTableWidgetItem image_return();
    void text_save_enable();
    void text_edit_enable();
    void text_edit_available();


private:
    Ui::text_edit *ui;
};

#endif // TEXT_EDIT_H


